﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace StolenBykes
{
  public  class WarehouseList
    {


        List<Bike> listOfBike = new List<Bike>();


        public void AddBike(Bike newBike)
        {
            listOfBike.Add(newBike);
            MyEvent evt = new MyEvent();
            evt.NewBikeInWarehouse += newBike.MassageWheel;
            Thread.Sleep(5000);
            evt.OnMyEvent();

        }
        
    }
}
